package controller;

import factory.InstanceFactory;
import factory.StaticFactory;
import service.student.StudentService;
import service.student.impl.StudentServiceImpl;

import java.util.Date;

public class Client {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
//        StudentService studentService=(StudentService) (Class.forName("service.student.impl.StudentServiceImpl").newInstance());
//        studentService.addStudent();

        StudentServiceImpl studentService1=new StudentServiceImpl("哈哈1","数字媒体技术","ncut0001",new Date());
        studentService1.addStudent();


//        StudentServiceImpl service= StaticFactory.getStudentService();
//        service.queryStudent();
//
//        InstanceFactory instanceFactory=new InstanceFactory();
//        StudentServiceImpl service1=instanceFactory.getStudentService();
//        service1.queryStudent();
    }
}
